export function keyToValue(
  key: number,
  list: [{ key?: number; value?: string; introduce?: string }]
) {
  if (!key) return '';

  if (list.length < 1) return '';

  for (const item of list) {
    if (item.key === key) {
      return item.value;
    }
  }
}
